package com.hhlkeepalive.resident;

import android.content.Context;
import android.content.Intent;

import java.lang.ref.WeakReference;

public class ResidentServiceFactory {
    private  Context mContext;

    public ResidentServiceFactory(Context mContext) {
        this.mContext = mContext;
    }

    //启动服务
    public  void  creatService(){
        Intent intent=new Intent(mContext,ResidentService.class);
        mContext.startService(intent);

    }
}
